<?php
class BaseEvt {	
	
	function __construct($portalAccount,  $portalPwd, $portalType)
	{
		$this->portalAccount = $portalAccount;
		$this->portalPwd 	= $portalPwd;
		$this->portalType = $portalType;
	}
	/*
	Account used by the Portal for accessing
	A string of 1 to 20 digits
	It cannot be null. It is assigned to the Portal by the carrier.
	*/
	public $portalAccount;
		
	/*
	Password used by the Portal for accessing
	A string of 1 to 20 digits
	It cannot be null. It is assigned to the Portal by the carrier.
	*/
	public $portalPwd;

	/*
	Portal type
	Refer to section 2.3.1  â€œInput Parameter Evt Object.â€�
	A string of 1 to 2 digits
	It can be null. The default value is 99.
	*/	
	public $portalType;
	
}

class BaseUpdateEvt extends BaseEvt {	
	
	function __construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode)
	{
		parent::__construct($portalAccount, $portalPwd, $portalType);
		
		$this->moduleCode = $moduleCode;
		$this->role 	= $role;
		$this->roleCode = $roleCode;
	}
		
	public $moduleCode;
	

	public $role;

	public $roleCode;
}

class BaseQueryEvt extends BaseEvt
{
	
	function __construct($portalAccount, $portalPwd, $portalType, $startRecordNum, $endRecordNum, $queryType)
	{
		parent::__construct($portalAccount, $portalPwd, $portalType);
		
		$this->startRecordNum = $startRecordNum;
		$this->endRecordNum 	= $endRecordNum;
		$this->queryType = $queryType;
	}
	
	public $startRecordNum;
	
	public $endRecordNum;
	
	public $queryType;
}
?>